enum Banner {
  width = 1440,
  height = 600
}
window.addEventListener('resize', () => {
  resetBannerHeight()
})
resetBannerHeight()

function resetBannerHeight () {
  const bannerHeight = document.body.offsetWidth * Banner.height / Banner.width
  const navMenu = document.querySelector('.nav-menu') as HTMLDivElement
  navMenu.style.height = bannerHeight + 'px'
}
